/*
 * UnitAnimal.h
 *
 *  Created on: 2013-1-19
 *      Author: heqiu
 */

#ifndef UNITANIMAL_H_
#define UNITANIMAL_H_

#include "GuudPoint.h"
#include "GuudSurface.h"
#include <vector>

namespace guud {

class UnitAnimal {
public:
	UnitAnimal();
	//设置 显示容器
	void setSurface(GuudSurface * pGuudSurface);
	//动物移动，返回当前应处于的位置
	void moving(uint32_t uiMSec, int32_t & iX, int32_t & iY);

	GuudSurface * m_pGuudSurface;
	GuudPoint m_stPos;	//相对于底层坐标的位置
	uint32_t m_iId;	//动物标号
	uint32_t m_iType;	//动物类别

	//移动相关 --begin
	uint32_t m_uiBeginMSec;	//开始移动时刻点
	uint32_t m_uiSpeed;	//几毫秒移动一个坐标
	float m_fXshift;
	float m_fYshift;
	std::vector<GuudPoint> m_vctPath;
	//移动相关 --end

};

}

#endif /* UNITANIMAL_H_ */
